package com.tao.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tao.dao.OrderDao;
import com.tao.entity.Order;
import com.tao.entity.Order_shap;
import com.tao.service.OrderService;

/**
 * 订单 model 的实现类
 * @author Administrator
 *
 */
@Service
public class OrderServiceImpl implements OrderService{

	@Autowired
	private OrderDao dao;

	@Override
	public int addOrder(Order order) {
		return dao.addOrder(order);
	}

	@Override
	public List<Order> findAllOrderByUserid(int id) {
	
		return dao.findAllOrderByUserid(id);
	}

	@Override
	public int deleteOrder(String orderids) {
		return dao.deleteOrder(orderids);
	}

}
